package cn.zebra.dev.mall.module.orders.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

/**
 * @author runnable@sina.cn
 */
@Getter
@Setter
@ToString
public class OrdersDTO {

    @ApiModelProperty("订单id")
    private Long id;

    @ApiModelProperty("订单编号")
    private String ordersSn;

    @ApiModelProperty("订单类型(0:普通订单;1:分期订单;2:抢购订单;5:转卖订单)")
    private Integer ordersType;

    @ApiModelProperty("收件人")
    private String recipientName;

    @ApiModelProperty("手机号")
    private String phone;

    @ApiModelProperty("详细地址")
    private String addressInfo;

    @ApiModelProperty("订单状态(-10:已过期;-1:已取消;0:待付款;1:已付款;10:待发货;20:已发货;30:进行中;50:待评价;100:已完成)")
    private Integer ordersStatus;

    @ApiModelProperty("总金额")
    private BigDecimal totalPrice;

    @ApiModelProperty("物流单号")
    private String expressSn;

    @ApiModelProperty("下单时间")
    private LocalDateTime createTime;

    @ApiModelProperty("过期时间")
    private LocalDateTime expiredTime;

    @ApiModelProperty("订单商品详情明细")
    private List<OrderItemDTO> itemList;
}
